//
//  KaiJiangSevenHistoryCell.m
//  新项目
//
//  Created by liGordon on 17/4/1.
//  Copyright © 2017年 刘耀宗. All rights reserved.
//

#import "KaiJiangSevenHistoryCell.h"

@implementation KaiJiangSevenHistoryCell

- (void)awakeFromNib {
    [super awakeFromNib];
    for(UIView *numView in self.NumView){
        numView.layer.cornerRadius = 15;
        numView.layer.masksToBounds = YES;
    }
    for(UILabel *numLabel in self.Numlabel){
        NSMutableArray* Valuearr=[NSMutableArray new];
        int counN=30;
        for(int i=0;i<counN;i++)
        {
            int value = arc4random() % 30;
            for(int j=0;j<Valuearr.count;j++)
            {
                NSString* s=Valuearr[j];
                while([s intValue]==value)                 {
                    value = arc4random() % 30;
                    j=-1;
                }
            }
            [Valuearr addObject:[NSString stringWithFormat:@"%d",value]];
        }
        for (int i = 0; i<29; i++) {
            numLabel.text = [NSString stringWithFormat:@"%@",Valuearr[i]];
        }
        
    }

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
